package com.example.book_manage_240827.service;

import com.example.book_manage_240827.mapper.UserInfoMapper;
import com.example.book_manage_240827.model.UserInfo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * 从数据中查询用户信息
 * @return
 */

@Service
public class UserService {
    @Autowired
    private UserInfoMapper userInfoMapper;
    public UserInfo queryByName(String userName){
        return userInfoMapper.queryByName(userName);
    }
}
